﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace RAP.Framework.Libary.SqlTaskParser
{
  public class SqlTokenMatch
  {
    /// <summary>
    /// 
    /// </summary>
    public string Value { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int Index { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int Length
    {
      get
      {
        return PlaceholderTag?.Length ?? 0;
      }
    }

    /// <summary>
    /// 
    /// </summary>
    public string PlaceholderTag { get; set; }
  }
}
